import { TCommonProblem } from '../../Types/system'
import request from '../../utils/request'

// 获取常见问题列表
export const getCommonProblem = () => request.get('/public/commonProblem')

// 添加常见问题
export const addCommonProblem = (data: TCommonProblem) => request.post('/public/commonProblem', data)

// 删除常见问题
export const deleteCommonProblem = (id: number) => request.delete(`/public/commonProblem/${id}`)
